import { createApp } from "vue";
import App from "./App.vue";
import * as Icons from "@element-plus/icons-vue";
import kdlowcode from "./install";
import vuex from "@/store/index";
import router from "./router/router.js";
import directives from "./directives/index";
import Vue3DraggableResizable from "vue3-draggable-resizable";
import "vue3-draggable-resizable/dist/Vue3DraggableResizable.css";

const app = createApp(App);

Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key]);
});

app
  .use(vuex)
  .use(router)
  .use(directives)
  .use(kdlowcode)
  .use(Vue3DraggableResizable)
  .mount("#app");
